const loginModule = {
	state: {
		username: "",
		password: "",
		email: "",
		phoneNumber: "",
		usertype: "1",
		userId: ""
	},
	mutations: {
		updateUsername(state, username) {
			state.username = username;
		},
		updatePassword(state, password) {
			state.password = password;
		},
		updateEmail(state, email) {
			state.email = email;
		},
		updatePhoneNumber(state, phoneNumber) {
			state.phoneNumber = phoneNumber;
		},
		updateUsertype(state, usertype) {
			state.usertype = usertype;
		},
		updateUserId(state, userId) {
			state.userId = userId;
		}
	},
	actions: {
		updateUsername: ({ commit }) => commit('updateUsername'),
		updatePassword: ({ commit }) => commit('updatePassword'),
		updateEmail: ({ commit }) => commit('updateEmail'),
		updatePhoneNumber: ({ commit }) => commit('updatePhoneNumber'),
		updateUsertype: ({ commit }) => commit('updateUsertype'),
		updateUserId: ({ commit }) => commit('updateUserId')
	},
	getters: {
		username: state => state.username,
		password: state => state.password,
		email: state => state.email,
		userId: state => state.userId,
		phoneNumber: state => state.phoneNumber,
		usertype: state => state.usertype
	}
}

